<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择喜欢的</title>
</head>
<div id="app">
    <p>请选择你喜欢的专栏</p>
    <ul style="display: flex; list-style-type: none;">
        <li v-for="(item,index) in list"><input type="checkbox" :value="item" v-model="lists">{{item}}</li>
    </ul>
    <ul style=" list-style-type: none;">
        <li v-for="(item,index) in lists">{{item}}</li>
    </ul>
</div>

<body>

</body>
<script src="./vue.js"></script>
<script>
    const app = new Vue({
        el: '#app',
        iss: false,
        data: {
            list: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
            lists: []
        },



    })
</script>

</html>